<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<!--v-on 缩写 @-->
			<input type="button" value="按钮" :title="mytitle" v-on:click="show"/>
		</div>
		<script type="text/javascript">
			new Vue({
				el:"#app",
				data:{
					mytitle:"敢点吗？",
					msg:"不敢"
				},
				methods:{
					show:function(){
						alert( this.msg)
					}
				}
			})
		</script>
	</body>
</html>
